package diamondRingDao;

import diamondRingEntity.Collection;
import diamondRingEntity.DiamondRingEntity;
import diamondRingEntity.Shooping;

import java.util.List;

public interface DiamondRingDao {
    //全部商品查询
    List<DiamondRingEntity> diamond();
    //按销量查询
    List<DiamondRingEntity> salesVolumeFind(String sales);
    //按价格查询
    List<DiamondRingEntity> priceFind(String price);
    //按系列查询
    List<DiamondRingEntity> seriesFind(String series);
    //商品模糊查询
    List<DiamondRingEntity> vagueFind(String vague);
    //商品信息展示
    DiamondRingEntity goodsNews(int id);
    //商品评价
    List<DiamondRingEntity> recordFind(int id);
    //删除节点
    int delGoods(int id);
    //清空购物车
    int EmptyGoods(int userid);
    //购物车查询
    List<Shooping> findGoods(int userId);
    //新增购物车商品
    int insertShoopingGoods(int userId,int id,int quantity);
    //修改刻字
    int updateGoods(int size,String lettering,int id);
    //购物车数量
    int fingShoppingNum(int userid);
    //所有的收藏商品
    List<Collection> collectionFind(int collId);
    //取消收藏
    int collectionDelete(int id);
    //判断是否收藏
   /* int collection(int userid,int goodsid);*/

    //收藏商品
    int collection(int userid,int goodid);


    List<DiamondRingEntity> finddiamond();

}
